{% extends "index.html" %}

{% block inline_navi %}
Profil Vervollständigung
{% endblock %}

{% block box_title %}
	Vervollständige dein Profil
{% endblock %}
{% block box_content %}
	<p>
	    Die Nutzungsrichtlinien haben sich verändert. Aktualisiere bitte dein Profil.
	</p>
	
	<div id="detail_table">
	    <h3>Profilformular</h3>
	    <form action="{% url usermanagement.views.accept_rules %}" enctype="multipart/form-data" method="post">
	        {% csrf_token %}
	        {{ login_form.non_field_errors }}
	        {{ accept_form.non_field_errors }}
	        <table>
	        	<!-- E-Mail adress -->
	            <tr>
	                {% if login_form.username.errors %}
	                <th class="form_error"><label for="id_username">E-Mail erforderlich*:</label></th>
	                {% else %}
	                <th><label for="id_username">E-Mail*:</label></th>
	                {% endif %}
	                <td>{{ login_form.username }}</td>
	            </tr>
	            <!-- Password -->
	            <tr>
	                {% if login_form.password.errors %}
	                <th class="form_error"><label for="id_password">Passwort erforderlich*:</label></th>
	                {% else %}
	                <th><label for="id_password">Passwort*:</label></th>
	                {% endif %}
	                <td>{{ login_form.password }}</td>
	            </tr>
	            <!-- Username -->
	            <tr>
	                {% if accept_form.new_username.errors %}
	                <th class="form_error"><label for="id_new_username">Freier Benutzername ist erforderlich*:</label></th>
	                {% else %}
	                <th><label for="id_new_username">Benutzername*:</label></th>
	                {% endif %}
	                <td>{{ accept_form.new_username }}</td>
	            </tr>
	            <!-- First Name -->
	            <tr>
	                {% if accept_form.first_name.errors %}
	                <th class="form_error"><label for="id_first_name">Vorname erforderlich*:</label></th>
	                {% else %}
	                <th><label for="id_first_name">Vorname*:</label></th>
	                {% endif %}
	                <td>{{ accept_form.first_name }}</td>
	            </tr>
	            <!-- Last Name -->
	            <tr>
	                {% if accept_form.last_name.errors %}
	                <th class="form_error"><label for="id_last_name">Nachname erforderlich*:</label></th>
	                {% else %}
	                <th><label for="id_last_name">Nachname*:</label></th>
	                {% endif %}
	                <td>{{ accept_form.last_name }}</td>
	            </tr>
	            <!-- Accept Rules -->
	            <tr>
	                {% if accept_form.accept_rules.errors %}
	                <th class="form_error"><label for="id_accept_rules">Du musst die <a target="about:blank" href="/impressum/">Nutzungsregeln/AGBs</a> akzeptieren*:</label></th>
	                {% else %}
	                <th><label for="id_accept_rules"><a target="about:blank" href="/impressum/">Nutzungsregeln/AGBs</a> akzeptieren*:</label></th>
	                {% endif %}
	                <td>{{ accept_form.accept_rules }}</td>
	            </tr>            
	            <tr>
	                <td colspan="2" align="center" style="padding-top: 10px;">
	                    <input type="submit" value="Abschließen" />
	                </td>
	            </tr>
	        </table>
	    </form>
	</div>
{% endblock %}
